package com.yuntsg.ruiijn.email;

import cn.hutool.core.io.FileUtil;
import cn.hutool.extra.mail.MailUtil;

import java.security.GeneralSecurityException;

public class A {
    public static void main(String[] args) throws GeneralSecurityException {
        String send = MailUtil.send("zhangfulei6521@163.com", "论文剖析文件上传存档",
                "<h1>论文剖析</h1>\n" +
                        "申请人:ZFL\n" +
                        "<br>\n" +
                        "申请时间:2023-08-10\n" +
                        "<br>\n" +
                        "归属人:QF",
                true, FileUtil.file("/Users/zhangfulei/Pictures/3333.jpg"));
        System.out.println(send);
    }
}
